package org.hehui.supervisorysystem.rcpcore;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.hehui.supervisorysystem.util.IAppConstants;

public class Perspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		//获取编辑区ID
		String editArea = layout.getEditorArea();
		//设置编辑区是否可见
		layout.setEditorAreaVisible(false);
		//布局是否固定
		//layout.setFixed(false);
		
		
		//添加视图
		layout.addStandaloneView(IAppConstants.SITOYUSERMANAGERVIEWPART_ID, true, IPageLayout.BOTTOM, 0.5f, editArea);
		
		
		
	}
}
